import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementUI from 'element-ui';//引入elementUI的html、js
import 'element-ui/lib/theme-chalk/index.css';//引入element的css
Vue.use(ElementUI);//启用element插件:UI框架-用户界面构建


import md5 from 'js-md5';//单向加密
Vue.prototype.$md5 = md5;//单向加密

// import element from './components/element'
// Vue.use(element);


import './permission';//路由守卫

Vue.config.productionTip = process.env.NODE_ENV == 'production';//false:有警告(开发过程要警告：方便调试)
// console.log(process.env.NODE_ENV);//开发环境：development;生成环境:production
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
